Xbasic

DAY_NUMBER Function

Syntax

Day_Of_Week as N = day_number(C day_name )

Arguments

day_name

The name of the week (at least the first three letters).

Description

DAY_NUMBER() returns the number of a given day. You only need to specify the first three characters of the Day_Name. Sunday is 1.

Example

day_number("sunday") -> 1
day_number("mon") -> 2

See Also